... <script> function makeScreenshot() { html2canvas(document.getElementById("screenshot"), {scale: 1}).then(canvas => { document.body.appendChild(canvas); }); } </script> </body>